package com.od.service.serviceImpl;

import com.od.entity.Education;
import com.od.mapper.EducationMapper;
import com.od.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EducationServiceImpl implements EducationService {

    @Autowired
    private EducationMapper educationMapper;
    @Override
    public List<Education> getEducationById(int educationResume) {
        return educationMapper.selectEducationById(educationResume);
    }

    @Override
    public int addEducation(Education education) {
        return educationMapper.insertEducation(education);
    }

    @Override
    public int updateEducationById(Education education) {
        return educationMapper.updateEducationById(education);
    }

    @Override
    public int deleteEducationById(int educationId) {
        return educationMapper.deleteEducationById(educationId);
    }
}
